# Python while循环语句详解
# 循环的初始化条件
num = 1
# 当 num 小于100时，会一直执行循环体
while num < 100:
    print("num =", num)
    # 迭代语句
    num += 1
print("循环结束！")
print()

my_char = "http://c.biancheng.net/python/"
i = 0
char_len = len(my_char)
while i < char_len:
    print(my_char[i], end = "")
    i += 1
